package com.xxx.store.service;

import com.xxx.store.vo.CartVO;
import java.util.List;

public interface CartService {
    void addToCart(Integer uid,Integer pid,Integer num,String username);

    List<CartVO> getCartByUid(Integer uid);

    /**
     *  更新购物车商品数量
     * @param cid
     * @param uid
     * @param username
     * @return 返回更新后的结果
     */
    Integer addNum(Integer cid,Integer uid,String username);

    Integer reduceNum(Integer cid,Integer uid,String username);

    List<CartVO> getCartByCid(Integer uid,Integer[] cids);


}
